OpenBuildings GenerativeComponents Help

color

A color value represents a display color.

General Forms

color(red, green, blue)
color(red, green, blue, alpha)

Each item in the list is an integer.

  • red, green and blue each range from 0 through 255. 0 means the color component is not present, while 255 means the color component is present at full intensity.
  • alpha ranges from 0 through 255; if not specified, its value is 255. The meaning of alpha is dependent on how the color is actually being used. Typically, alpha refers to the color's opacity: 0 means the color is fully transparent, and 255 means the color is fully opaque.

Examples

color(0,0,0)

This represents the color black.

color(255,255,255)

This represents the color white.

color(162,255,0)

This represents a lime-green color.